package com.rongc.client.freight.base.request.api;


import com.android.volley.Response.ErrorListener;
import com.android.volley.Response.Listener;
import com.rongc.client.core.network.api.AbsRequest;
import com.rongc.client.core.network.params.BaseParams;
import com.rongc.client.freight.ApiUrl;
import com.rongc.client.freight.base.request.result.NullResult;


/*
*  发送位置信息接口
* */

public class LocationApi extends AbsRequest<LocationApi.LocationParams, NullResult> {

    public LocationApi(LocationParams feedbackParams, Listener<NullResult> listener, ErrorListener errorListener) {
        super(Method.POST, ApiUrl.getAppUserPositionUrl(), feedbackParams, listener, errorListener, NullResult.class);
    }

    public static class LocationParams extends BaseParams {
        public LocationParams(String userId,String lat,String lng) {
            put("userId", userId);
            put("lng", lng);
            put("lat", lat);
        }
    }


}
